import { post, get } from '@/utils/request'

// 智慧称重相关API接口
export const fishWeightApi = {
  // 获取最新识别记录(默认50条)
  getLatestRecord: () => {
    //return get('https://localhost:6002/scale/latest-recognitions')
     return get('https://4b527230k9.zicp.fun/gateway/scale/latest-recognitions')
  },

  // 获取识别地点与电子秤id统计
  getLocationStatistics: () => {
    //return get('https://localhost:6002/scale/location-status')
    return get('https://4b527230k9.zicp.fun/gateway/scale/location-status')
  },

  // 获取电子秤照片
  getScalePhoto: () => {
    //return get('https://localhost:6002/scale/image-url')
    return get('https://4b527230k9.zicp.fun/gateway/scale/image-url')
  }
}

// 最新识别记录响应类型
export const latestRecordResponse = {
  username:'',
  createTime:'',
  recognitionResult: '',
  confidence: ''
}

// 识别地点与电子秤id统计响应类型
export const locationStatisticsResponse = {
  username: '',
  address: '',
  shedNo: ''
}

// 电子秤照片响应类型
export const scalePhotoResponse = {
  url: ''
}